package org.csmzxy.class2333.file;
import java.io.FileInputStream;

public class Example07 {
    public static void main(String[] args) throws Exception{
        //创建字节输入流
        FileInputStream in = new FileInputStream("src\\text01.txt");
        int b;           //用于记录每次读取的字节
        while (true){
            b = in.read();
            if(b == -1){
                break;
            }
            System.out.println(b);
        }
        in.close();     //释放资源
    }
}
